package com.sm.honkon.ui.fragment.more

import android.os.Bundle
import au.com.safie.user.app.util.CacheUtil
import com.sm.honkon.R
import com.sm.honkon.app.base.BaseFragment
import com.sm.honkon.app.ext.goBackHome
import com.sm.honkon.app.ext.goMannger
import com.sm.honkon.app.handle.BottomHandle
import com.sm.honkon.databinding.FrgSettingCommonBinding
import com.sm.honkon.ui.model.CommonConfigViewModel
import me.hgj.jetpackmvvm.ext.nav

class CommonConfigFragment : BaseFragment<CommonConfigViewModel, FrgSettingCommonBinding>() {
    override fun layoutId(): Int = R.layout.frg_setting_common

    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.model = mViewModel
        mDatabind.handle = BottomHandle(nav())

    }

    override fun onPause() {
        super.onPause()
        CacheUtil.setCommonConfig(mViewModel.config)
    }

}